AT+CSIM allows direct control of the SIM.
Compared to Restricted SIM Access command
AT+CRSM, the definition of
AT+CSIM allows the ME to take more control over the SIM interface.
For parameter and SIM result coding please refer GSM 11.11
[26].
However, only the following SIM commands are supported by
AT+CSIM: SELECT, STATUS, READ BINARY, UPDATE BINARY, READ RECORD, UPDATE RECORD, SEEK, INCREASE and GET RESPONSE.
The SIM interface design requires that some actions need more than one command, e.g. access to an Elementary File's data requires a prior SELECT command. To ensure that two commands related to the same action are sent to the SIM consecutively, i.e. without being interrupted by other software entities, each SELECT command will be buffered in an internal directory path. Before performing new commands the internal directory path will be checked to enable the retransmittion of the buffered SELECT command's (explicit selection).
The directory path can be used to queue up to 20 Files e.g. 19 Dedicated Files (DF's) and 1 Elementary File (EF).
After each
AT+CSIM execution the Master File (MF) which acts as a logical root will be selected to guarantee that other software entities are not affected.